home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / read.n < prev    next >
Text File  |  1995-07-25  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      rrrreeeeaaaadddd((((nnnn))))                      TTTTccccllll (((( ))))                      rrrreeeeaaaadddd((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           read - Read from a file
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           rrrreeeeaaaadddd ?----nnnnoooonnnneeeewwwwlllliiiinnnneeee? _f_i_l_e_I_d
  15.           rrrreeeeaaaadddd _f_i_l_e_I_d _n_u_m_B_y_t_e_s
  16.      _________________________________________________________________
  17.  
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.           In the first form, all of the remaining bytes are read  from
  21.           the file given by _f_i_l_e_I_d; they are returned as the result of
  22.           the command.  If the ----nnnnoooonnnneeeewwwwlllliiiinnnneeee switch is specified then the
  23.           last  character of the file is discarded if it is a newline.
  24.           In the second form, the extra argument  specifies  how  many
  25.           bytes  to  read;  exactly  this  many bytes will be read and
  26.           returned, unless there are fewer than _n_u_m_B_y_t_e_s bytes left in
  27.           the  file;  in  this  case,  all  the  remaining  bytes  are
  28.           returned.  _F_i_l_e_I_d must be ssssttttddddiiiinnnn or the return value  from  a
  29.           previous  call  to  ooooppppeeeennnn;  it  must refer to a file that was
  30.           opened for  reading.   Any  existing  end-of-file  or  error  |
  31.           condition  on  the  file  is cleared at the beginning of the  |
  32.           rrrreeeeaaaadddd command.
  33.  
  34.  
  35.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  36.           file, read
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/17/95)
  64.  
  65.  
  66.  
  67.